package bjtu.tjj.simpledy.dto;

import lombok.Data;

@Data
public class PageDTO {
    private Integer offset;
    private Integer limit;

    public PageDTO(Integer page, Integer size) {
        offset = (page - 1) * size;
        limit = size;
    }
}
